import request from '@/utils/request'

// 查询教师信息列表
export function listTeacherinfo(query) {
  return request({
    url: '/jwgl/teacherinfo/list',
    method: 'get',
    params: query
  })
}

// 查询教师信息详细
export function getTeacherinfo(id) {
  return request({
    url: '/jwgl/teacherinfo/' + id,
    method: 'get'
  })
}

// 新增教师信息
export function addTeacherinfo(data) {
  return request({
    url: '/jwgl/teacherinfo',
    method: 'post',
    data: data
  })
}

// 修改教师信息
export function updateTeacherinfo(data) {
  return request({
    url: '/jwgl/teacherinfo',
    method: 'put',
    data: data
  })
}

// 删除教师信息
export function delTeacherinfo(id) {
  return request({
    url: '/jwgl/teacherinfo/' + id,
    method: 'delete'
  })
}
